package com.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * Description:
 *
 * @Author: future
 * @Date:2022/8/13:9:55
 */
@SpringBootApplication
@EnableDiscoveryClient
public class CloudNacosConsumer8001 {

    public static void main(String[] args) {
        SpringApplication.run(CloudNacosConsumer8001.class, args);
    }

    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }

}
